package com.lang.dao;

import com.lang.entity.User;

import java.util.List;

/*
 * @Date : 2024/3/12 16:08
 * @Created by Lang
 * @ProjectName : LclShop
 */
public interface UserDao {
    User getUserByName(String username);

    int addUser(User user);

    User getUserByCode(String code);

    int updateStatus(int uId);

    User adminLogin(String username);

    List<User> list();

    List<User> searchByGender(String gender);

    List<User> searchByUsername(String username);

    List<User> search(String username, String gender);

    int deleteUser(String id);
}
